package cn.zxone.feishu.demo.common.exception;


import cn.zxone.feishu.demo.common.enums.ResultCode;
import cn.zxone.feishu.demo.common.pojo.IResultCode;


/**
 * <p>
 *     自定义参数异常 会打印 warn 日志
 * </p>
 *
 * @date 2024-04-29 17:26:01
 */
public class ParamException extends BaseException {


    public ParamException() {
        super(ResultCode.PARAM_ERROR);
    }

    public ParamException(String message) {
        super(ResultCode.PARAM_ERROR, message);
    }

    public ParamException(Throwable cause) {
        super(ResultCode.PARAM_ERROR, cause);
    }

    public ParamException(String message, Throwable cause) {
        super(ResultCode.PARAM_ERROR, cause, message);
    }

    public ParamException(String message, Object data) {
        super(ResultCode.PARAM_ERROR, null, message, data);
    }

    public ParamException(String message, Throwable cause, Object data) {
        super(ResultCode.PARAM_ERROR, cause, message, data);
    }

    public ParamException(IResultCode resultCode) {
        super(resultCode);
    }

    public ParamException(IResultCode resultCode, String message) {
        super(resultCode, message);
    }

    public ParamException(IResultCode resultCode, Throwable cause) {
        super(resultCode, cause);
    }

    public ParamException(IResultCode resultCode, Throwable cause, String message) {
        super(resultCode, cause, message);
    }

    public ParamException(IResultCode resultCode, Throwable cause, String message, Object data) {
        super(resultCode, cause, message, data);
    }


}
